package com.wzcl.app.service;

import com.wzcl.app.dao.model.KnowledgePoint;
import com.wzcl.app.dao.model.Topic;
import com.wzcl.app.dao.model.TopicAndKnowledgePoint;

import java.util.List;

public interface TopicAndKnowledgePointService {

    void bind(Topic topic, KnowledgePoint knowledgePoint);

    void unBind(Topic topic, KnowledgePoint knowledgePoint);

    void unBind(Topic topic);

    void unBind(KnowledgePoint knowledgePoint);

    List<Topic> findTopicByKnowledgePointId(Integer knowledgePointId);

    List<Topic> findTopicByKnowledgePointId(KnowledgePoint knowledgePoint);

    List<KnowledgePoint> findKnowledgePointByTopicId(Integer topicId);

    List<KnowledgePoint> findKnowledgePointByTopicId(Topic topic);

    List<TopicAndKnowledgePoint> findTopicAndKnowledgePointByTopic(Topic topic);
}
